#ifdef	_WIN32
#pragma warning(disable:4996)
#endif
#ifndef	_DBCONN_H_
#define	_DBCONN_H_

#ifndef	_ORACLE
#define	_ORACLE
#endif

#ifdef	_WIN32
#pragma warning(disable:4786 4005)
#endif


#include	<basedb.h>

#ifdef DBCONN_EXPORTS

#ifdef	DLL_EXPORT
#undef	DLL_EXPORT
#endif

#ifdef	_WIN32
#define DLL_EXPORT __declspec(dllexport)
#else
#define DLL_EXPORT
#endif
#else
#ifdef  DLL_EXPORT
#undef  DLL_EXPORT
#define DLL_EXPORT      
#endif
#endif

#ifdef	DBCONN_EXPORTS
int DLL_EXPORT DBConnInit(const char * szConnStr,int nMaxConn=300,int nMinConn=2,int nSecureFlag=0);
int DLL_EXPORT DBConnReleaseConnect(CDBConnect * pConnect);
DLL_EXPORT CDBConnect *  DBConnGetConnect();
void DLL_EXPORT DBConnUninit();
void DLL_EXPORT CheckDBExcept(CDBConnect * pConnect,int errcode);
#else
int DBConnInit(const char * szConnStr,int nMaxConn=300,int nMinConn=2,int nSecureFlag=0);
int DBConnReleaseConnect(CDBConnect * pConnect);
CDBConnect *  DBConnGetConnect();
void DBConnUninit();
void CheckDBExcept(CDBConnect * pConnect,int errcode);
#endif

#endif

